import Model from '../index'

class SearchTerm extends Model {

  // 获取搜索词条
  getSearchTermList (options) {
    options.url = '/api/fontend/searchTerm/getSearchTermList'
    return this.post(options)
  }

  // 更新用户搜索词条
  updateUserSearchWord (options) {
    options.url = '/api/fontend/searchTerm/updateUserSearchWord'
    return this.post(options)
  }
}

const searchTermModel = new SearchTerm()
export default searchTermModel
